import request from '../utils/request'
import { baseUrl } from './apiUrl'

export function getInfo() {
  return request.post(baseUrl + 'user/info', null)
}

export function getUserInfo(params) {
  return request({
    url: baseUrl + 'user/userInfo',
    method: 'get',
    params
  })
}

export function getUserChat(params) {
  return request({
    url: baseUrl + 'user/getUserChat',
    method: 'get',
    params
  })
}

export function getUserRelation(params) {
  return request({
    url: baseUrl + 'user/getUserRelation',
    method: 'get',
    params
  })
}

export function getUserRelationInfo(params) {
  return request({
    url: baseUrl + 'user/getUserRelationInfo',
    method: 'get',
    params
  })
}
